package com.asset.pojo;

import java.util.Date;

public class AssetOperate {

	private Long id;
	private String optePerson;//操作人员
	private Short opteGenre;//操作类型
	private String equipIdentifier;//操作的资产编号
	private String equipName;//设备名称
	private String equipModel;//设备型号
	private String equipBrand;//设备品牌
	private String opteRemark;//操作备注
	private Date opteTime;//操作时间
	private int assetSign;//最新操作标记
	
	
	public enum OpteGenre{
		//操作类型 : 修改,分配,领用,归还,删除
		Add("添加",(short)0), Modify("修改",(short)1),Assigned("分配",(short)2),Receive("领用",(short)3),Revert("归还",(short)4),Delete("删除",(short)5);
	        public short value;
			public String name;
			OpteGenre(String name,short value){
				this.value = value;
				this.name = name;
			}
			public static String getName(short value) {
		        for (OpteGenre c : OpteGenre.values()) {  
		            if (c.getValue() == value) {  
		                return c.name;  
		            }  
		        }  
		        return null;  
		    } 
			public static short getValue(String name) {
	            for (OpteGenre c : OpteGenre.values()) {  
	                if (c.getName().equals(name)) {
	                    return c.value;  
	                }  
	            }
	            return 404;  
	        } 
	        public short getValue(){
	            return value;
	        }
	        public void setValue(short value){
	            this.value = value;
	        }
	        public String getName(){
	            return name;
	        }
	        public void setName(String name){
	            this.name = name;
	        }
			
	    }


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public String getOptePerson() {
		return optePerson;
	}


	public void setOptePerson(String optePerson) {
		this.optePerson = optePerson;
	}


	public Short getOpteGenre() {
		return opteGenre;
	}


	public void setOpteGenre(Short opteGenre) {
		this.opteGenre = opteGenre;
	}


	public String getEquipIdentifier() {
		return equipIdentifier;
	}


	public void setEquipIdentifier(String equipIdentifier) {
		this.equipIdentifier = equipIdentifier;
	}


	public String getEquipName() {
		return equipName;
	}


	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}


	public String getEquipModel() {
		return equipModel;
	}


	public void setEquipModel(String equipModel) {
		this.equipModel = equipModel;
	}


	public String getEquipBrand() {
		return equipBrand;
	}


	public void setEquipBrand(String equipBrand) {
		this.equipBrand = equipBrand;
	}


	public String getOpteRemark() {
		return opteRemark;
	}


	public void setOpteRemark(String opteRemark) {
		this.opteRemark = opteRemark;
	}


	public Date getOpteTime() {
		return opteTime;
	}


	public void setOpteTime(Date opteTime) {
		this.opteTime = opteTime;
	}

	public int getAssetSign() {
		return assetSign;
	}

	public void setAssetSign(int assetSign) {
		this.assetSign = assetSign;
	}


	@Override
	public String toString() {
		return "AssetOperate [id=" + id + ", optePerson=" + optePerson + ", opteGenre=" + opteGenre
				+ ", equipIdentifier=" + equipIdentifier + ", equipName=" + equipName + ", equipModel=" + equipModel
				+ ", equipBrand=" + equipBrand + ", opteRemark=" + opteRemark + ", opteTime=" + opteTime
				+ ", assetSign=" + assetSign + "]";
	}
}
